package com.itheima.service;

import com.itheima.POJO.HealthScheme;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;

import java.util.Map;

public interface HealthSchemeService {

    /**
     * 添加健康方案的接口方法
     * @param healthScheme
     * @return
     */
    public Result addHealthScheme (HealthScheme healthScheme);

    /**
     * 根据条件和分页健康方案所有健康方案
     * @param queryPageBean
     * @return
     */
    public PageResult findPage(QueryPageBean queryPageBean);

    /**
     * 根据id删除健康方案
     * @param id
     */
    public void deleteHealthScheme (Integer id);

    /**
     * 根据id查找scheme
     * @param id
     * @return
     */
    public Result findHealthSchemeById(Integer id);

    /**
     * 编辑健康方案的接口方法
     * @param healthScheme
     * @return
     */
    public void updateHealthScheme (HealthScheme healthScheme);

    public void forbiddenById(Integer id, String state);
}
